<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
   'read/:id'=> 'index/read',
   'read/:name'=> 'index/read',

   'reply/:id'=> 'index/reply',
   'reply/:name'=> 'index/reply',


    'change/:id'=> 'index/change',
   'addcomment/:id' => 'index/addcomment',
   'addcomment/:name' => 'index/addcomment',

   'delete/:id'=>'index/delete',
   'add'=>'index/add',
   'out/:user'=>'login/DoLogout',
   'check'=>'index/check',

   'addarticle/:name'=>'index/add_article',

   'login'=>'login/index',
   'login_submit'=>'login/login',
   'regist'=>'regist/index',
   'regist_submit'=>'regist/regist',
   'change_article/:id'=>'index/change_article',
   'change_article/:name'=>'index/change_article',
//    个人留言列表
    'message'=>'message/index',

    'readData/:id'=> 'message/read',
    'readData/:name'=> 'message/read',

    'private'=>'message/privatePage',
//审核
    'checkMessage'=>'message/checkMes',
//用户
    'UserManage'=>'message/userMan'
];
